//package com.dxh.dao;
//
//import com.dxh.io.Resource;
//import com.dxh.pojo.User;
//import com.dxh.sqlSession.SqlSession;
//import com.dxh.sqlSession.SqlSessionFacetory;
//import com.dxh.sqlSession.SqlSessionFacetoryBuild;
//import org.dom4j.DocumentException;
//
//import java.beans.PropertyVetoException;
//import java.io.InputStream;
//import java.lang.reflect.InvocationHandler;
//import java.lang.reflect.Proxy;
//import java.util.List;
//
///**
// * @author https://github.com/CoderXiaohui
// * @Description
// * @Date 2020-11-08 13:52
// */
//public class IUserDaoImpl implements IUserDao {
//    @Override
//    public List<User> findAll() throws Exception {
//        InputStream resourceAsStream = Resource.getResourceAsStream("sqlMapConfig.xml");
//        SqlSessionFacetory sqlSessionFacetory = new SqlSessionFacetoryBuild().build(resourceAsStream);
//        SqlSession sqlSession = sqlSessionFacetory.openSession();
//        List<User> userList = sqlSession.selectList("user.selectList");
//        return userList;
//    }
//
//    @Override
//    public User findByCondition(User user) throws Exception {
//        InputStream resourceAsStream = Resource.getResourceAsStream("sqlMapConfig.xml");
//        SqlSessionFacetory sqlSessionFacetory = new SqlSessionFacetoryBuild().build(resourceAsStream);
//        SqlSession sqlSession = sqlSessionFacetory.openSession();
//        User user2 = sqlSession.selectOne("user.selectOne",user);
//        return user2;
//    }
//
//    @Override
//    public void insertUser(User user) throws PropertyVetoException, DocumentException {
//        InputStream resourceAsStream = Resource.getResourceAsStream("sqlMapConfig.xml");
//        SqlSessionFacetory sqlSessionFacetory = new SqlSessionFacetoryBuild().build(resourceAsStream);
//        SqlSession sqlSession = sqlSessionFacetory.openSession();
//        sqlSession
//    }
//
//    @Override
//    public void deletetUserByUid(Integer id) {
//
//    }
//
//    @Override
//    public void updateUser(User user) {
//
//    }
//
//}
